package com.train.pattern.strategy.v2.pay;

/**
 * @author hugx
 * @create 2021-01-14 18:12
 */
public class Account {
    private String cardNo; //银行卡号
    private String payWay; //支付方式
    private double balance ; //余额
    private int memberType; //会员类型  0-普通会员， 1-VIP会员

    public Account(String cardNo, String payWay, double balance) {
        this.cardNo = cardNo;
        this.payWay = payWay;
        this.balance = balance;
        this.memberType=0;
    }

    public Account(String cardNo, String payWay, double balance, int memberType) {
        this.cardNo = cardNo;
        this.payWay = payWay;
        this.balance = balance;
        this.memberType=memberType;
    }


    public String getCardNo() {
        return cardNo;
    }

    public String getPayWay() {
        return payWay;
    }

    public double getBalance() {
        return balance;
    }

    public int getMemberType() {
        return memberType;
    }
}
